<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
<html lang="zh">
<head>        
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    
    <!--[if gt IE 8]>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />        
    <![endif]-->        
    
    <title>${singup.title }</title>
    
    <%@include file="res.jsp" %>
    
    <%@include file="htmledit.jsp"%>
    
</head>
<body>    

    <jsp:include page="header.jsp"></jsp:include>

	<jsp:include page="menu.jsp"></jsp:include>
    
    <jsp:include page="com_bbs.jsp"></jsp:include>
	
    <div class="content">

<div class="row-fluid">
            
            <div class="span12">                

                <div class="widget">
                    <div class="head dark">
                        <div class="icon"><i class="icos-pencil2"></i></div>
                        <h2>添加报名</h2>
                    </div>  
                    <form action="page/singup_update.action" method="post" id="validate" enctype="multipart/form-data">               
                    <div class="block-fluid">

                        <div class="row-form">
                            <div class="span1">标题:</div>
                            <input type="hidden" name="id" value="${singup.id }">
                            <div class="span10"><input type="text" class="validate[required],minSize[3],maxSize[80]" value="${singup.title }" name="title" placeholder="标题"></div>
                        </div>
                        
                       <div class="row-form">
								<div class="span1">
									海报 
								</div>
								<div class="span10">
									<div class="input-append file">
                                    <input type="file" name="pic" >
                                    <input type="text" > 
                                </div>
								</div>
							</div>
                        <div class="row-form">
                            <div class="span1">内容:</div>
                            <div class="span10"><textarea name="content" class="validate[required]" style="height:300px;" >${singup.content }</textarea></div>
                        </div>
 						<div class="row-form">
                            <div class="span1">标识码:</div>
                            <div class="span5"><input type="text" name="code" value="${singup.code }" placeholder="默认为空">
                            <span class="bottom">用户报名的时间写,防止过度报名</span></div>
                        </div>  
                        <div class="row-form">
                            <div class="span1">结束:</div>
                            <div class="span5"><input type="text"  id="datepicker" class="validate[required,custom[date]]" name="endTime" value="${fn:substring(singup.endTime,0,10) }" placeholder="结束的时间">
                            <span class="bottom">必须, 格式为&nbsp;&nbsp;2015-11-11&nbsp;&nbsp;(建议复制修改)</span></div>
                        </div> 
                              
                        <div class="toolbar bottom TAL">
                            <button class="btn btn-primary">修改</button>
                        </div>

                    </div>
                    </form>
                </div> 
            </div>
             
        </div>

    </div>  
 
</body>
</html>
